import React , { SFC } from 'react';
import { observer , inject } from "mobx-react";
import "@scss/ImageScreen.scss";
/**
 * decorator 无法用在function上所以这里采用es5的写法
 * 当然可以考虑采用pureComponent，就可以使用decorator的写法了
 */
export const ImageScreen: SFC<{ Global?: IGlobalTypes.IGlobal }> = inject("Global")(
    observer(({ Global }) => {
        return (
            <div className="ImageScreen">
                <img src={ Global!.src } alt="FirstImageScreen"/>
            </div>
        );
    })
)